#ifndef APPROVEDIALOG_H
#define APPROVEDIALOG_H

#include <QDialog>
#include "DbConnection.h"
#include "action.h"
#include "dateedit.h"

class ApproveDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ApproveDialog(Action *action, QWidget *parent = 0);
private:
    DbConnection* m_db;
    Action *m_action;
    QTabWidget m_tab;
    QTextEdit m_content, m_opinion;
    QCheckBox m_contentChange, m_expiryChange;
    QPushButton m_okButton, m_cancelButton;
    DateEdit m_expiry;
    void createTabs();
signals:

private slots:
    void onOkButtonClick();
};

#endif // APPROVEDIALOG_H
